<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			let gwo = uni.getStorageSync('Gowu') || []
			let num = 0;
			gwo.forEach(item=>{
				if (item.zt) {
					num++
				}
			})
			uni.setTabBarBadge({
			  index: 2,
			  text: num.toString()
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
